import request from "@/api/request";
import { apiClusterJava } from "@/api/root";

// 获取待服务/待评分/已评价接口
export const getOrderListForConsultant = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/ztOrder/getOrderListForConsultant",
    data
  );
};
// 添加评分主表
export const addOrderRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/orderRate/addOrderRate",
    data
  );
};
// 查询顾问消息通知总数
export const getConsultantNoticeCount = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantNotice/getConsultantNoticeCount",
    data
  );
};
// 修改顾问消息状态
export const updateConsultantNoticeStatus = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantNotice/updateConsultantNoticeStatus",
    data
  );
};
// 添加评分详情
export const addOrderRateDetail = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/orderRateDetail/addOrderRateDetail",
    data
  );
};
// 获取评分详情
export const getOrderRateDetail = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/orderRateDetail/getOrderRateDetail",
    data
  );
};
// 获取用户是否已有评价
export const getPersonHasOrderRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/orderRateDetail/getPersonHasOrderRate",
    data
  );
};
// (非付费)查询顾问绑定用户列表 待服务/待评分/已评价
export const getConsultantBindPersonList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/getConsultantBindPersonList",
    data
  );
};
// (非付费)添加评分主表
export const consultantAddRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/consultantAddRate",
    data
  );
};
// (非付费)获取用户是否已有评价
export const getPersonHasConsultantRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/getPersonHasConsultantRate",
    data
  );
};
// (非付费)用户添加评分详情
export const personAddRateDetail = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/personAddRateDetail",
    data
  );
};
// (非付费)获取评分详情
export const getConsultantRateDetail = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/getConsultantRateDetail",
    data
  );
};
// (非付费)根据rateId查询顾问信息
export const getRateDataByRateId = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/consultantRate/getRateDataByRateId",
    data
  );
};
// 筛选项目列表
export const selectCardTypeList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/cardType/selectCardTypeList",
    data
  );
};
